package com.youlai.system.model.form;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Schema(description = "岗位表单对象")
@Data
public class PositionForm {

    @Schema(description="岗位ID")
    private Long id;

    @Schema(description="岗位名称")
    @NotBlank(message = "岗位名称不能为空")
    private String name;

    @Schema(description="岗位编码")
    @NotBlank(message = "岗位编码不能为空")
    private String code;

    @Schema(description="排序")
    private Integer sort;

    @Schema(description="岗位状态(1-正常；0-停用)")
    private Integer status;

}
